/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.meanzoft.minecraft_clone.util;

import org.lwjgl.util.vector.Vector3f;

/**
 *
 * @author Meanz
 */
public class Vertex {
    
    private Vector3f vertex;
    
    public Vertex(float x, float y, float z) {
        vertex = new Vector3f(x, y, z);
    }
    
    public Vertex(Vector3f vertex) {
        this.vertex = vertex;
    }
    
    public float[] toFloatArray() {
        float[] buffer = new float[3];
        buffer[0] = vertex.x;
        buffer[1] = vertex.y;
        buffer[2] = vertex.z;
        return buffer;
    }
    
}
